# -- coding:utf-8 --

# 导入模块
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
import time

driver_path = r'/Users/yang/Desktop/myself/spider-code/基础知识/selenium/chromedriver'
service = Service(driver_path)
driver = webdriver.Chrome(service=service)

# 打开指定网页
driver.get('http://nature.beisen.co/')
# 打印网页源代码
# print(driver.page_source)

time.sleep(5)

# driver.close()
driver.quit()
